package ywpt.service.config;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;
import  com.ifp.weixin.MessageMng.Message.resp.RespArticleInfoDefine;
import com.ifp.weixin.MessageMng.Message.resp.RespMsgInfoDefine;
import ywpt.model.WeixinAccount;

public interface ArticleService {

	public abstract RespArticleInfoDefine getArticleById(Long id);

	public abstract int getArticleCountByCriteria(DetachedCriteria query);

	public abstract List<RespArticleInfoDefine> getArticleInfos(
			DetachedCriteria query, int pageSize, int startIndex);

	public abstract void saveArticleInfo(RespArticleInfoDefine articleInfoDefine,Long respMsgInfoDefineId,Long weixinAccountId);

	public abstract void updateArticleInfo(RespArticleInfoDefine articleInfoDefine, Long respMsgInfoDefineId,Long weixinAccountId);

	public abstract void removeArticleInfo(Long id);
	
	public abstract List<RespArticleInfoDefine> getArticleByTitle(String title,String name,Long unit_id, int start,int size);
	
	public abstract int getArticleCountByName(String title,String name,Long unit_id) ;
	public abstract void saveArticleInfo(RespArticleInfoDefine articleInfoDefine) ;
	
	public abstract   List<RespArticleInfoDefine> getArticleInfos() ;

}
